package com.un.ebs.inventory.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/7/22 9:04
 */
@Data
public class PurchaseInventoryNoteItemDto extends InventoryNoteItemDto {

    @NotNull(message = "需要指定采购订单")
    private String orderId;

    public PurchaseInventoryNoteItemDto() {

    }

    public PurchaseInventoryNoteItemDto(String id, String orderId, String skuId, Double qty) {
        super(id, skuId, qty, 0d);
        this.orderId = orderId;
    }
}
